<?php
$params = array();
if ($numVente = $this->request()->getParam('num_vente')) {
    $params['num_vente'] = $numVente;
}
if ($search = $this->request()->getParam('s')) {
    $params['s'] = $search;
}
$httpQuery = http_build_query($params);
if ($httpQuery) $httpQuery = '/?' . $httpQuery;
?>
<div class="pagination">
        <!-- First page link -->
        <?php if (isset($this->previous)): ?>
              <a title="First Page" href="<?php echo $this->url(array('page' => $this->first)) . $httpQuery;?>">&laquo; First</a>
        <?php else: ?>
                <span class="disabled">&laquo; First</span>
        <?php endif; ?>

        <!-- Previous page link -->

        <?php if (isset($this->previous)): ?>
              <a title="Previous Page" href="<?php echo $this->url(array('page' => $this->previous)). $httpQuery;?>">&laquo; Previous</a>
        <?php else: ?>
            <span class="disabled">&laquo; Previous</span>
        <?php endif; ?>
        <!-- Numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if ($page != $this->current): ?>
                <a class="number" href="<?php echo $this->url(array('page' => $page)). $httpQuery; ?>"><?php echo $page; ?></a>
            <?php else: ?>
                <a class="number current" title="<?php echo $page;?>" href="<?php echo $this->url(array('page' => $page)) . $httpQuery ?>"><?php echo $page; ?></a>
            <?php endif; ?>
        <?php endforeach; ?>
        <!-- Next page link -->
        <?php if (isset($this->next)): ?>
               <a title="Next Page" href="<?php echo $this->url(array('page' => $this->next)). $httpQuery; ?>">Next &raquo;</a>
        <?php else: ?>
             <span class="disabled">Next &raquo;</span>
        <?php endif; ?>
        <!-- Last page link -->
        <?php if (isset($this->next)): ?>
              <a title="Last Page" href="<?php echo $this->url(array('page' => $this->last)). $httpQuery; ?>">Last &raquo;</a>
        <?php else: ?>
            <span class="disabled">Last &raquo;</span>
        <?php endif; ?>
 </div>